Use PESetPrintOptions to set the print options for the report to the values supplied in PEPrintOptions. Use this function any time you want to set the starting page number, the ending page number, the number of report copies, and/or collation instructions for a print job in response to user specifications at runtime.
BOOL CRPE_API PESetPrintOptions (
short printJob,
PEPrintOptions FAR *options );
Specifies the print job for which you want to set printing options. | |
Specifies a pointer to PEPrintOptions. If this parameter is set to 0 (NULL), the function prompts the user for these options. Using this, you can get the behavior of the print |
VB Sample Code for modifying title, options, margins, and date |
Declare Function PESetPrintOptions Lib "crpe32.dll" (ByVal printJob As Integer, Options As PEPrintOptions) As Integer
function PESetPrintOptions (
printJob: Word;
var options: PEPrintOptions
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |